#include <iostream>
#include <string>
#include "Car.h"

using namespace std;

Car::Car(const char *pTypeVehicle, int SpeedType, float SpeedLand, char *pDriverName)
: Vehicle( pTypeVehicle, SpeedType ), m_SpeedLand ( SpeedLand ), m_pDriverName (new char[strlen( pDriverName ) + 1])
{
	strcpy( m_pDriverName, pDriverName );
}

/*Car::~Car( void )
{
	delete [] m_pDriverName;
}*/

void Car::Show( void )
{
	Vehicle::Show();
	cout << "Speed: "<< m_SpeedLand << endl;
	cout << "Driver's Name: "<< m_pDriverName << endl;
}
